<template>
    <div>
        <h3>App</h3>
        <Child userName="张三" age="23" @click="fn1" @handle="fn2"></Child>
    </div>
</template>

<script>
import Child from '@/components/Child.vue'

export default {
    name: "App",
    components: {Child},
    methods:{
        fn1(){
            console.log('click--fn1')
        },
        fn2(){
            console.log('handle--fn2')
        }
    }
}
</script>